; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a
; semicolon, such as this one, are comments.  They are not executed.

; This script has a special filename and path because it is automatically
; launched when you run the program directly.  Also, any text file whose
; name ends in .ahk is associated with the program, which means that it
; can be launched simply by double-clicking it.  You can have as many .ahk
; files as you want, located in any folder.  You can also run more than
; one ahk file simultaneously and each will get its own tray icon.

; SAMPLE HOTKEYS: Below are two sample hotkeys.  The first is Win+Z and it
; launches a web site in the default browser.  The second is Control+Alt+N
; and it launches a new Notepad window (or activates an existing one).  To
; try out these hotkeys, run AutoHotkey again, which will load this file.

#Include hotstrings.ahk

CapsLock::End

^!c::Run Chrome
^!o::Run C:\Program Files\Opera\opera.exe
^!s::Run C:\Program Files\Skype\Phone\skype.exe
^!p::Run C:\WINDOWS\system32\javaws.exe -localfile "C:\Documents and Settings\default\Application Data\Sun\Java\Deployment\cache\6.0\35\753f5c63-56c3d207
^!t::Run C:\Program Files\Sublime Text 2\sublime_text.exe
^!y::
run c:\cygwin\cygwin.bat
return
^!f:: Run Firefox
^!n::Run Notepad++

^!r::
Reload
Sleep 1000 ; If successful, the reload will close this instance during the Sleep, so the line below will never be reached.
MsgBox, 4,, The script could not be reloaded. Would you like to open it for editing?
IfMsgBox, Yes, Edit
return

#p::Pause

#+t::
WinSet, AlwaysOnTop, toggle, A
return

#+s::
    Loop, parse, clipboard, `n, `r
{
   Sleep 600
Run http://www.solytron.bg/products/product.html?groupId=PHILIPS&codeId=%A_LoopField%
}
return

#+g::
    Loop, parse, clipboard, `n, `r
{
   Sleep 1000
Run http://www.google.bg/search?q=%A_LoopField%
}
return

#+e::
    Loop, parse, clipboard, `n, `r
{
   Sleep 600
Run http://www.epson.eu/gb/en/viewcon/corporatesite/products/search?searchKey=%A_LoopField%
}
return

#+c::
    Loop, parse, clipboard, `n, `r
{
run http://www.corsair.com/en/catalogsearch/result/?q=%A_LoopField%
}
return

#+d::
   FormatTime, xx,, d-MM-yyyy ; This is one type of the date format
   SendInput, %xx%
Return

#+h::
   FormatTime, zz,,  hh:mm:ss tt ; This is one type of the time format
   SendInput, %zz%
Return

#Include addattachment.ahk